package com.gitee.wsl.mathematics.geometry.d2.ext


import com.gitee.wsl.mathematics.vector.vec2.Vec2f
import kotlin.math.sin
import kotlin.random.Random

fun generateNoisySineWave(numPoints: Int, noiseMagnitude: Float): List<Vec2f> {
    // Generate a simple linear path with noise
    return (0 until numPoints).map {
        val x = it.toFloat()
        val y = sin(x) + (Random.nextFloat() - 0.5) * noiseMagnitude
        Vec2f(x, y)
    }
}